home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
network
/
umslp203.zip
/
SLIP.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-10-20
|
2KB
|
92 lines
echo off
cls
goto start
rem This batch file allows you to easily select network services.
:start
if %1. == ?. goto list
if %1. == . goto list
if %1. == help. goto list
if %1. == setup. goto setup
if %1. == hangup. goto forceH
if %1. == dial. goto forceD
if %1. == exit. goto hangup
if %1. == quit. goto hangup
if %1. == minuet. goto needsslip
if %1. == gopher. goto needsslip
if %1. == HELP. goto list
if %1. == SETUP. goto setup
if %1. == HANGUP. goto forceH
if %1. == DIAL. goto forceD
if %1. == EXIT. goto hangup
if %1. == QUIT. goto hangup
if %1. == MINUET. goto needsslip
if %1. == GOPHER. goto needsslip
goto bogus
goto end
:needsslip
umslip -w >nul
phone dial
if errorlevel 1 goto nogo
if %1. == minuet. goto min
if %1. == gopher. goto gop
if %1. == MINUET. goto min
if %1. == GOPHER. goto gop
goto bogus
:hangup
phone hangup
termin 0x60 >nul
goto end
:forceH
umslip -w >nul
phone force hangup
goto end
:forceD
umslip -w >nul
phone force dial
goto end
:nogo
echo Dialing error! No SLIP connection.
goto end
:min
MINUET
goto list
:gop
gopher
goto list
:setup
umslip -w >nul
phone setup
goto list
:bogus
echo %1 is not a valid command. Try again.
echo.
:list
echo SLIP 2.0.3
echo.
echo Please enter one of the following in LOWER case:
echo ------------------------------------------------
echo slip setup to change phone number, modem settings, etc.
echo.
echo slip to get help
echo slip minuet
echo slip gopher
echo.
echo slip quit to hang up the phone and unload packet driver
echo.
:end